import request from '@/utils/request';

// 查询监控概况
export function queryMonitorOverview(data: any): ApiPromise {
	return request({
		url: '/business-monitor/home/allItRoad/queryMonitorOverview',
		method: 'post',
		data: data,
		headers: {
			VERSION: 'lishilei',
		},
	});
}

// 查询全系统IT路径图
export function queryAllItRoad(data?: any): ApiPromise {
	return request({
		url: '/management/allSystemItRoadGraph/getAllItRoadGraph',
		method: 'get',
		params: data,
		headers: {
			VERSION: 'dengfazhu',
		},
	});
}

// 查询网端详情数据
export function querySegmentData(data: any): ApiPromise {
	return request({
		url: '/business-monitor/home/allItRoad/querySegmentData',
		method: 'post',
		data: data,
		headers: {
			VERSION: 'dangfazhu',
		},
	});
}

// 修改网端坐标
export function updateSegmentPosition(data: any): ApiPromise {
	return request({
		url: '/business-monitor/home/allItRoad/updateSegmentPosition',
		method: 'post',
		data: data,
		headers: {
			VERSION: 'lishilei',
		},
	});
}

// 查询网端组件详情列表
export function queryComponentDetailList(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/home/allItRoad/getComponentDetailsDataList',
		method: 'post',
		data: data,
	});
}

// 查询网络详情列表
export function queryNetworkDetailList(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/home/allItRoad/getNetworkDetailsList',
		method: 'post',
		data: data,
		headers: {
			VERSION: 'LSH',
		},
	});
}
